home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr46
/
be310.zip
/
CINDENT1.CHS
< prev
next >
Wrap
Text File
|
1993-06-01
|
988b
|
26 lines
/* CHESS FUNCTION(S): CINDENT1.CHS
/* DATE: 5/15/93
/* AUTHOR: C. Schanck
/*
/* DESCRIPTION: This program file will convert from C mode
/* indention #2 to C mode indention #1. It is very useful when
/* used in conjunction with 'global' to change a whole set of files
/* to a uniform indention style.
{
int i;
set_display(0);
while(Search("~[ ]*[{][ ]*$~ ~fr~ ")) /* find a line ending
/* in a bracket...
{
if(ask("file_column")!=1) /* if it is not the beginning
/* of a line, del_bol.
Del_bol();
Back_space(); /* join to prev line
End_line(); /* go the the end
i=i+1;
if((i%25)==0) /* keep the user on top
msg("%ld instances changed...",i);
}
update_display();
set_display(1);
}